package com.es.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 描述:
 * es-meta-
 *
 * @author Derek
 * @create 2021-11-26 10:37
 */
@Controller
@RequestMapping("/es")//给handlermapping看的
public class EsController {

    @RequestMapping("/index")
    public ModelAndView index(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("msg","你好，SpringMVC");
        modelAndView.setViewName("index");
        return modelAndView;
    }
}
